//
//  PersonitlyCell.m
//  IntimateGift
//
//  Created by 张科 on 14-12-22.
//  Copyright (c) 2014年 蔡宏业. All rights reserved.
//

#import "PersonitlyCell.h"

@implementation PersonitlyCell

- (void)dealloc
{
    [_perImageView release];
    [_liked_count release];
    [_perLabel release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.perImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.perImageView];
        [_perImageView release];
        
        self.perLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.perLabel];
        self.perLabel.font = [UIFont boldSystemFontOfSize:16];
        self.perLabel.numberOfLines = 0;
        self.perLabel.textColor = [UIColor blackColor];
        [_perLabel release];
        
        self.liked_count = [[UILabel alloc] init];
        [self.contentView addSubview:self.liked_count];
        [_liked_count release];
        [self layoutSubviews];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.perImageView.frame = CGRectMake(5, 5, self.contentView.bounds.size.width - 10, self.contentView.bounds.size.height - 45);
    self.perLabel.frame = CGRectMake(5, self.contentView.bounds.size.height - 40, self.contentView.bounds.size.width - 5, 40);
}
@end
